home *** CD-ROM | disk | FTP | other *** search
- Hi this is a voting addon that gives three options
-
- <A,B,or C> to vote on............
- **
- <events>
- **
- #abcpoll disabled
- 1:ON NICK: {
- if ($newnick isin %notagain) /halt
- if ($nick isin %notagain) { /notice $newnick HAHAHA!! dont think so!! | /set %notagain %notagain $newnick }
- }
- 1:ON TEXT:!vote*:#: {
- if ($nick isin %notagain) { /notice $nick You Can Only Vote Once D00D | /halt }
- if ($parm2 = a) { /inc %a | /set %notagain %notagain $nick | /inc %totalabc | /notice $nick Thank You For Participating! | /halt }
- if ($parm2 = b) { /inc %b | /set %notagain %notagain $nick | /inc %totalabc | /notice $nick Thank You For Participating! | /halt }
- if ($parm2 = c) { /inc %c | /set %notagain %notagain $nick | /inc %totalabc | /notice $nick Thank You For Participating! | /halt }
- /notice $nick Please Make A Valid Vote %popver
- }
- #abcpoll end
- **
- <aliases>
- **
- /abcvote {
- /enable #abcpoll
- set %a 0
- set %b 0
- set %c 0
- set %abcquestion $?="Enter Question"
- set %avalue $?="Enter A Value"
- set %bvalue $?="Enter B Value"
- set %cvalue $?="Enter C Value"
- msg # "ABC" voting is now in progress......
- msg # The question is [ $+ %abcquestion $+ ].....
- msg # Vote [A] $+ %avalue [B] $+ %bvalue [C] $+ %cvalue
- msg # Type !vote <a,b,c> to vote[closeing in 2 min]
- .timer 1 60 /msg # Only 60 sec Left To Vote (!vote <a,b,c>)
- .timer 1 120 /abclose
- }
- /abclose {
- disable #abcpoll
- set %a %a * 100
- set %a %a / %totalabc
- set %b %b * 100
- set %b %b / %totalabc
- set %c %c * 100
- set %c %c / %totalabc
- set %totalabc %totalabc * 100
- set %totalabc %totalabc / $nick(0,#)
- msg # voting is now closed..the votes are being counted..
- msg # %totalabc $+ % of the users on # voted on ===========>[ $+ %abcquestion $+ ]<===========
- msg # [A] $+ %avalue $+ = %a $+ % [B] $+ %bvalue $+ = %b $+ % [C] $+ %cvalue $+ = %c $+ %
- if ((%a > %b) && (%a > %c)) goto awin
- if ((%a > %b) && (%a = %c)) goto aandc
- if ((%a > %c) && (%a = %b)) goto aandb
- if ((%a < %b) && (%c < %b)) goto bwin
- if ((%a < %b) && (%c = %b)) goto bandc
- if ((%a < %c) && (%c > %b)) goto cwin
- if ((%a = %b) && (%a = %c)) goto equal
- :awin
- msg # The majority voted for [A] $+ %avalue !!!!
- goto end
- :bwin
- msg # The majority voted for [B] $+ %bvalue !!!!
- goto end
- :cwin
- msg # The majority voted for [C] $+ %cvalue !!!!
- goto end
- :equal
- msg # It equaled out!!!
- goto end
- :aandb
- msg # [A] $+ %avalue and [B] $+ %bvalue Were Tied!!
- goto end
- :aandc
- msg # [A] $+ %avalue and [C] $+ %cvalue Were Tied!!
- goto end
- :bandc
- msg # [B] $+ %bvalue and [C] $+ %cvalue Were Tied!!
- :end
- unset %a | unset %b | unset %c | unset %avalue | unset %bvalue | unset %cvalue | unset %abcquestion | unset %totalabc | unset %notagain
- }
-
- **
- <popups>
- **
- ABCvoter:/abcvote
-
- ex: question = Who is cool??????
- avalue = oH_yEaH
- bvalue = You
- cvalue = Someone
-
- It helps to have mIRC32 v4.6 but it may werk with 4.52
- and this is pasted directly out of my script so it
- should werk and if it doesnt well try putting the events
- lines at the top of events and make sure events is
- listening <it helps sometimes>
-
- from "The Best" er so i like to say..............
- oH_yEaH
-
-
- UPLOADED TO WWW.SCRIPTERZ.COM BY |^JoLt^|
-